﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Daemon.Model
{
    [Table("admin_file")]
    public partial class AdminFile
    {
        [Key]
        [Column("Id")]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int Id { get; set; }

        public string Name { get; set; }

        public string Ext { get; set; }

        public string FilePath { get; set; }

        public string OutPath { get; set; }

        public string ServerFilePath { get; set; }

        public decimal FileSizeKB { get; set; }
        public string ServerOutPath { get; set; }

        public int IsDelete { get; set; }

        public int TreeId { get; set; }

        public DateTime AddTime { get; set; }

        public DateTime UpdateTime { get; set; }

        public int AddUserId { get; set; }

        public int UpdateUserId { get; set; }

        [ForeignKey("AddUserId")]
        public AdminUser AddUser { get; set; }

        [ForeignKey("UpdateUserId")]
        public AdminUser UpdateUser { get; set; }
    }
}
